package com.gqc.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.gqc.bean.Details;
import com.gqc.service.DetailsService;
@Controller
public class DetailsController {
	
	@Autowired
	private DetailsService detailsService;

	@RequestMapping("/findOrderDetails")
	@ResponseBody
	public Details findOrderDetails(@RequestBody int id) {
		return detailsService.findOrderDetails(id);
	}
}
